package com.alangyun.remind.repository.data;

import java.io.Serializable;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

/**
 * 劳动组织模块 - 数据类
 *
 * @company 北京诚朗信息技术有限公司
 * @author hoobort klxukun@126.com
 * @datetime 2022年12月11日 上午11:35:24
 *
 */
@XStreamAlias("organ-item")
public class OrganCaution implements Serializable {

	@XStreamOmitField
	private Integer index;
	@XStreamAlias("name")
	private String name;
	@XStreamAlias("plan-amount")
	private Integer plan;
	@XStreamAlias("fact-amount")
	private Integer fact;
	@XStreamAlias("score")
	private Double score;

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPlan() {
		return plan;
	}

	public void setPlan(Integer plan) {
		this.plan = plan;
	}

	public Integer getFact() {
		return fact;
	}

	public void setFact(Integer fact) {
		this.fact = fact;
	}

	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}

	public static OrganCaution create(String name, int plan, int fact, double score) {
		OrganCaution ret = new OrganCaution();
		ret.name = name;
		ret.plan = plan;
		ret.fact = fact;
		ret.score = score;
		
		return ret;
	}
}
